package graphics.raytracing;
import static util.MatrixOperationsF.*;
public class CastResult {
	private Tracable _tr;
	private float[] _hit;
	private float[] _normal;
	/**
	 * The object that was hit & the location it was hit at
	 * @param tr
	 * @param hit
	 * @param normal 
	 */
	public CastResult(Tracable tr,float[] hit, float[] normal)
	{
		_tr=tr;
		_hit=cloo(hit);
		_normal=cloo(normal);
	}
	public Tracable getTracable()
	{
		return _tr;
	}
	public float[] getLocation(){
		return _hit;
	}
	public float[] getNormal() {
		return _normal;
	}
}
